﻿namespace 三
{
    internal class Program
    {
        static void Main(string[] args)
        {
            int a, b;
            a = Convert.ToInt32(Console.ReadLine());
            b = Convert.ToInt32(Console.ReadLine());
            Console.WriteLine("加法：" + MyMath.Add(a, b));
            Console.WriteLine("减法：" + MyMath.Sub(a, b));
            Console.WriteLine("除法：" + MyMath.Div(a, b));
            Console.WriteLine("乘法：" + MyMath.Mul(a, b));
        }
    }
    static class  MyMath
    {
        public static double Add(double a,double b)
        {
            return a + b;
        }
        public static double Sub(double a,double b)
        {
            return a - b;
        }
        public static double Mul(double a,double b)
        {
            return a * b;
        }
        public static double Div(double a,double b)
        {
            if(b!=0)
            {
                return a / b;
            }
            else
            {
                Console.WriteLine("除数不能为零");
                return 0;
            }
        }
    }
}
